
using SqlSugar;
using System.ComponentModel.DataAnnotations;

namespace Domain
{
    /// <summary>
    /// 生产计划表
    /// </summary>
    [SugarTable("Lwp_ProductionPlan")]
    public class Lwp_ProductionPlan
    {
        [Key]
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }
        
        /// <summary>
        /// 单据编码
        /// </summary>
        public string DocNumber { get; set; } = string.Empty;
        
        /// <summary>
        /// 业务类型
        /// </summary>
        public string BizType { get; set; } = string.Empty;
        
        /// <summary>
        /// 业务人员
        /// </summary>
        public string BizUser { get; set; } = string.Empty;
        
        /// <summary>
        /// 单据日期(YYYY-MM-DD)
        /// </summary>
        public DateTime DocDate { get; set; } = DateTime.Now;
        
        /// <summary>
        /// 操作员
        /// </summary>  
        public string Operator { get; set; } = string.Empty;
        
        /// <summary>
        /// 订单BOM编号
        /// </summary>
        public string OrderBom { get; set; } = string.Empty;
        
        /// <summary>
        /// 业务单号
        /// </summary>
        public string BizNumber { get; set; } = string.Empty;
        
        /// <summary>
        /// 版本号
        /// </summary>
        public int Version { get; set; }
        
        /// <summary>
        /// 订单交期(YYYY-MM-DD)
        /// </summary>
        public DateTime DeliveryDate { get; set; } 
        
        /// <summary>
        /// 版本说明
        /// </summary>
        public string VersionDesc { get; set; } = string.Empty;
        
        /// <summary>
        /// 生产总量
        /// </summary>
        public int TotalQuantity { get; set; }
        
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; } = string.Empty;
    }
}
